#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
#include"ily.h"
#include"gdom.h"
int main()
{
	int year = 0, month = 0;
	scanf("%d %d", &year, &month);
	int days = get_days_of_month(year, month);
	printf("%d\n", days);
	return 0;
}

